-- GENERATED SPELL FOR [Dark Sprite] --


function spell0_2004(pUnit, Event) --@Darken Vision,n/a--
pUnit:FullCastSpellOnTarget(5514,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2004', 14000, 1)
end

function Sorts_2004(pUnit, Event)
local choix_sorts_2004 = math.random(0, 0)
if choix_sorts_2004 == 0 then
pUnit:RegisterEvent('spell0_2004', 1, 1)
end
end

function mob2004_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2004', math.random(1500, 3000), 1)
end

function mob2004_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2004_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2004_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2004, 1, 'mob2004_Action')
RegisterUnitEvent(2004, 2, 'mob2004_Leave')
RegisterUnitEvent(2004, 3, 'mob2004_Kill')
RegisterUnitEvent(2004, 4, 'mob2004_Die')
